package com.jf.docsify.common.utils;

public class SystemUtil {

    private SystemUtil() {
    }


    public static boolean isLinux() {
        return systemOs().toLowerCase().contains("linux");
    }

    public static boolean isWin() {
        return systemOs().toLowerCase().contains("windows");
    }

    public static String sysUserName() {
        return getSysProp("user.name");
    }

    public static String systemOs() {
        return getSysProp("os.name");
    }

    private static String getSysProp(String prop) {
        return System.getProperty(prop);
    }
}
